import axios from 'axios'
const request = axios.create({
    baseURL: 'http://127.0.0.1:8888/api/private/v1/'
})
request.interceptors.request.use(function (config) {
    // 添加请求头的token
    config.headers.Authorization = window.sessionStorage.getItem('token')
    // 修改完之后 让请求发送出去
    return config
})
export default request